package cate.game.fight.pet;

import cate.game.play.part.BattlePet;
import cate.game.play.support.PlayBuildContextWith;
import cate.game.role.res.holy_pet.core.HolyPetFightParam;
import easy.java.dev.note.NoteClass;

import java.util.ArrayList;
import java.util.List;

@NoteClass("战斗灵宠builder")
public class BattlePetBuilder extends PlayBuildContextWith {


	public BattlePet build(HolyPetFightParam petFightParam) {
		BattlePet battlePet = new BattlePet();
		battlePet.petId = petFightParam.getPetId();
		battlePet.exDamage = petFightParam.getExtraDamage();
		battlePet.unlockRound = petFightParam.getRound();
		List<Integer> skills = new ArrayList<>();
		skills.add(petFightParam.getSkillId());
		battlePet.addSkills(skills);
		return battlePet;
	}
}
